﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace problema3
{
    class SQLQuery : Query //bridge pattern -> clasa concreta ce descrie functiile
    {
        private String databasename;
        private String TableName;
        public void setDabaseName(string db)
        {
            databasename = db;
        }
        public String getDabaseName()
        {
            return databasename;
        }

        public void setTableName(string tn)
        {
            TableName = tn;
        }
        public string getTableName()
        {
            return TableName;
        }
        public override string ToString()
        {
            return "select * from " + TableName;
        }
    }
}
